package com.isdepci.project.carbon.mapper;

import com.isdepci.project.carbon.domain.BSulfurEmission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 脱硫排放Mapper接口
 *
 * @author isdepci
 * @date 2025-03-29
 */
public interface BSulfurEmissionMapper
{

    // 按照年份查询
    List<BSulfurEmission> selectByYear(@Param("projectId") Long projectId, @Param("startYear") String startYear, @Param("endYear") String endYear);

    // 按照月份查询
    List<BSulfurEmission> selectByMonth(@Param("projectId") Long projectId, @Param("startMonth") String startMonth, @Param("endMonth") String endMonth);



    /**
     * 查询脱硫排放
     */
     BSulfurEmission selectBSulfurEmissionById(Long id);

    /**
     * 查询脱硫排放列表
     */
     List<BSulfurEmission> selectBSulfurEmissionList(BSulfurEmission bSulfurEmission);

    /**
     * 新增脱硫排放
     */
     int insertBSulfurEmission(BSulfurEmission bSulfurEmission);

    /**
     * 修改脱硫排放
     */
     int updateBSulfurEmission(BSulfurEmission bSulfurEmission);

    /**
     * 删除脱硫排放
     */
     int deleteBSulfurEmissionById(Long id);

    /**
     * 批量删除脱硫排放
     */
     int deleteBSulfurEmissionByIds(Long[] ids);


    void insertList(@Param("list") List<BSulfurEmission> list);


    List<BSulfurEmission> selectBSulfurEmissionByProjectId(Long projectId);
}
